<% layout('/layouts/default.html', {title: '岗位管理', libs: ['dataGrid']}){ %>
<div class="main-content">
	<div class="box box-main">
		<div class="box-header">
			<div class="box-title">
				<i class="fa icon-trophy"></i> ${text('总计')}
			</div>
			
		</div>
		<div class="box-body">
			<#form:form id="searchForm" action="${ctx}/sys/count/count" method="post" class="form-inline hide"
					data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
				
				<div class="form-group">
					<button type="submit" class="btn btn-primary btn-sm">${text('查询')}</button>
					<button type="reset" class="btn btn-default btn-sm">${text('重置')}</button>
				</div>
			</#form:form>			
			<table id="dataGrid"></table>
		</div>
	</div>
</div>
<% } %>
<script>
// 初始化DataGrid对象
$('#dataGrid').dataGrid({
	searchForm: $("#searchForm"),
	columnModel: [
		{header:'${text("院校名称")}', name:'a', index:'a.a', width:200, align:"center", frozen:true},
		{header:'${text("总人数")}', name:'b', index:'a.b', width:200, align:"center"},
		{header:'${text("登录人数")}', name:'c', index:'a.c', width:80, align:"center"},
		{header:'${text("更新人数")}', name:'d', index:'a.d', width:80, align:"center"},
	],
	// 加载成功后执行事件
	ajaxSuccess: function(data){
		
	}
});
</script>